import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'
import iManager from '@/views/iManager'
import postNews from '@/views/postNews'
import login from '@/components/login'
import routerPermission from './routerPerimission.js'
import people from '@/views/people'
import report from '@/views/report'

Vue.use(Router)



// routerPermission.routerPermission(router)
const router = new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/imanager',
      name: 'imanager',
      component: iManager
    },
    {
      path: '/postnews',
      name: 'postnews',
      component: postNews
    },
    {
      path: '/people',
      name: 'people',
      component: people
    },
    {
      path: '/report',
      name: 'report',
      component: report
    },
  ]
})
routerPermission(router)
export default router